#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
		if((n-2)%2==0&&n!=2) printf("YES\n");
		else printf("NO\n");
	}
} 
